
export const login = (data,that) => {
    that.postRequest(that.loginServiceApi + '/login/', data).then(res => {
        if (res) {
            const tokenStr = res.data.tokenHead + " " + res.data.token
            // 存储token
            window.sessionStorage.setItem("tokenStr", tokenStr)
            // 跳转首页
            let path = that.$route.query.redirect
            that.$router.replace((path == '/' || path == undefined) ? '/home' : path)
        } else {
            that.fnUpdateCaptcha()
        }
    })
}